package Animal;

public class Animal implements Cloneable{
    public String name;

    public Animal(String name){
        this.name=name;
  }
public Animal(){

}

    public Animal clone(){
        Animal animal =null;
        try{
            animal=(Animal) super.clone();
        }catch (CloneNotSupportedException e){
            e.printStackTrace();
        }
        return animal;
    }

    public static void main(String[] args) {
        Animal animal=new Animal();
        Animal animal1=animal.clone();
        System.out.println(animal1==animal);
    }

}
//我们提供一组接口
//会飞的，会跑的、会游泳

